def Answers(l2,l1=[]):
    if len(l2) == 1:
        print(l1 + l2)
    else:
        for i in range(0,len(l2)):
            l3 = l2[:]
            Answers(l3, l1 + [l3.pop(i)])
            
        
        

Answers([1,2,3])
